package com.sh.tgtools.view;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.View;

import com.sh.tgtools.R;
import com.sh.tgtools.base.BaseFragment;


/**
 * A simple {@link Fragment} subclass.
 */
public class GuideOneFragment extends BaseFragment {

    final long ANIMATION_DURATION = 500;
    final long ANIMATION_OFFSET = 200;


    public GuideOneFragment() {
        // Required empty public constructor
    }

    private int[] mAnimationViewIds = {
            R.id.iv_guide1, R.id.iv_guide2, R.id.iv_guide3,
            R.id.tv_guide
    };

    @Override
    protected int getContentView() {
        return R.layout.fragment_guide_one;
    }

    public int getRootViewId(){
        return R.id.ll_guide1;
    }

    public int[] getChildViewIds() {
        return new int[]{
                R.id.iv_guide1
        };
    }

    @Override
    protected void initViews() {

    }
    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

//        for (int i = 0; i < mAnimationViewIds.length; i++) {
//            Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.splash_guide_items);
//            animation.setDuration(ANIMATION_DURATION);
//            animation.setStartOffset(ANIMATION_OFFSET * i);
//            view.findViewById(mAnimationViewIds[i]).startAnimation(animation);
//        }
    }


}
